<ion-header-bar align-title="center" class="bar bar-header bar-light" style='background: url(img/icon/headerline.png); background-size: contain; background-position: bottom; background-repeat: no-repeat;'>
    <a class="button icon-left ion-ios-arrow-left button-clear button-light" ng-click="backGo()"></a>
    <h1 class="title">我的请假</h1>
    <a  href="#/leaveApply" ng-show="!edit" class="ion-plus-round" style="position: absolute;right: 10px;top: 9px;font-size: 25px;color: deepskyblue;"></a>
</ion-header-bar>
<ion-content class="content bg">
    <ion-refresher pulling-text="<span class='pulling-text-auto'>{{pulltextchange}}</span>" on-refresh="doRefresh()"
                   on-pulling="pulltext()" spinner="ripple" pulling-icon="ion-ios-refresh-empty"></ion-refresher>
    <ion-list ng-show="!edit">
        <ion-item ng-repeat="leave in leaves" ng-click="show(leave)" style="margin-top: 1.5%;border:0px;">
                <a class="button icon-right ion-ios-arrow-right button-clear button-light" style="position:absolute; top: 30%; right: 2%;"></a>
                <div><img src="img/icon/sets.png" style="margin-right: 2%;width: 4%;height: 4%">请假类型：<span ed-options="leavetype">{{leave.leaveType}}</span>
                </div>
                <hr class="hr">
                <br/>
                <p style="line-height: 35px">申请时间：{{leave.createTime}}</p>
                <p>流程状态：{{leave.taskState.taskStatus == 'true'? '流程结束':leave.taskState.taskName}}</p>
        </ion-item>
    </ion-list>
    <ion-list ng-show="edit">
        <div class="detailTitle" ng-repeat="field in fields| filter : {showType : '6'}" >
            <img style="width: 4%; height: 4%; position: relative;"
                 src="img/icon/sets.png"/>
            请假类型:<span ed-options="leavetype">{{field.value}}</span>
        </div>
        <div class="detailContent" ng-repeat="field in fields " ng-show="field.showType!=0&&field.showType!=6">
            <div style="display: inline-block;width: 100px">{{field.title}}:</div>
            <!--<span style="color: #666;overflow: hidden;" ng-show="{{field.showType==7}}" ed-options="{{field.col}}">{{field.value}}</span>
            <span style="color: #666;overflow: hidden;" ng-show="{{field.showType!=7}}">{{field.value}}</span>-->

            <span style="color: #666;overflow: hidden;" ng-if="field.options" ed-options="{{field.options}}">{{field.value}}</span>
            <span style="color: #666;overflow: hidden;" ng-if="(!field.options)&&field.col!='files'">{{field.value}}</span>

        </div>
        <div class="detailTitle">流程状态：{{taskName}}</div>
    </ion-list>
</ion-content>
